home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / packages / resume.elc.z / resume.elc
Emacs Compiled Lisp  |  1998-05-21  |  2.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 33 3a 32 31 20 31 | 39 39 38 0a 3b 3b 3b 20 |:53:21 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 70 61 63 6b |s-20.3/l|isp/pack|
|000000a0| 61 67 65 73 2f 72 65 73 | 75 6d 65 2e 65 6c 0a 3b |ages/res|ume.el.;|
|000000b0| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|000000c0| 20 32 30 2e 34 20 22 45 | 6d 65 72 61 6c 64 22 20 | 20.4 "E|merald" |
|000000d0| 58 45 6d 61 63 73 20 20 | 4c 75 63 69 64 2e 0a 3b |XEmacs |Lucid..;|
|000000e0| 3b 3b 20 62 79 74 65 63 | 6f 6d 70 20 76 65 72 73 |;; bytec|omp vers|
|000000f0| 69 6f 6e 20 32 2e 32 35 | 20 58 45 6d 61 63 73 3b |ion 2.25| XEmacs;|
|00000100| 20 32 32 2d 4d 61 72 2d | 39 36 2e 0a 3b 3b 3b 20 | 22-Mar-|96..;;; |
|00000110| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|00000120| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|00000130| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|00000140| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|00000150| 74 20 69 6e 20 45 6d 61 | 63 73 20 31 39 2e 0a 0a |t in Ema|cs 19...|
|00000160| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000170| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000180| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000190| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|000001a0| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|000001b0| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|000001c0| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|000001d0| 65 72 73 69 6f 6e 20 22 | 32 30 22 29 29 29 0a 20 |ersion "|20"))). |
|000001e0| 20 20 20 28 65 72 72 6f | 72 20 22 60 72 65 73 75 | (erro|r "`resu|
|000001f0| 6d 65 2e 65 6c 27 20 77 | 61 73 20 63 6f 6d 70 69 |me.el' w|as compi|
|00000200| 6c 65 64 20 66 6f 72 20 | 45 6d 61 63 73 20 32 30 |led for |Emacs 20|
|00000210| 22 29 29 0a 0a 28 6f 72 | 20 28 62 6f 75 6e 64 70 |"))..(or| (boundp|
|00000220| 20 27 63 75 72 72 65 6e | 74 2d 6c 6f 61 64 2d 6c | 'curren|t-load-l|
|00000230| 69 73 74 29 20 28 73 65 | 74 71 20 63 75 72 72 65 |ist) (se|tq curre|
|00000240| 6e 74 2d 6c 6f 61 64 2d | 6c 69 73 74 20 6e 69 6c |nt-load-|list nil|
|00000250| 29 29 0a 0a 0a 23 40 36 | 39 20 2a 54 68 69 73 20 |))...#@6|9 *This |
|00000260| 66 69 6c 65 20 69 73 20 | 77 68 65 72 65 20 61 72 |file is |where ar|
|00000270| 67 75 6d 65 6e 74 73 20 | 61 72 65 20 70 6c 61 63 |guments |are plac|
|00000280| 65 64 20 66 6f 72 20 61 | 20 73 75 73 70 65 6e 64 |ed for a| suspend|
|00000290| 65 64 20 65 6d 61 63 73 | 20 6a 6f 62 2e 1f 0a 28 |ed emacs| job...(|
|000002a0| 64 65 66 76 61 72 20 72 | 65 73 75 6d 65 2d 65 6d |defvar r|esume-em|
|000002b0| 61 63 73 2d 61 72 67 73 | 2d 66 69 6c 65 20 28 65 |acs-args|-file (e|
|000002c0| 78 70 61 6e 64 2d 66 69 | 6c 65 2d 6e 61 6d 65 20 |xpand-fi|le-name |
|000002d0| 22 7e 2f 2e 65 6d 61 63 | 73 5f 61 72 67 73 22 29 |"~/.emac|s_args")|
|000002e0| 20 28 23 24 20 2e 20 2d | 36 30 32 29 29 0a 23 40 | (#$ . -|602)).#@|
|000002f0| 34 35 20 42 75 66 66 65 | 72 20 74 68 61 74 20 69 |45 Buffe|r that i|
|00000300| 73 20 75 73 65 64 20 62 | 79 20 72 65 73 75 6d 65 |s used b|y resume|
|00000310| 2d 70 72 6f 63 65 73 73 | 2d 61 72 67 73 2e 1f 0a |-process|-args...|
|00000320| 28 64 65 66 76 61 72 20 | 72 65 73 75 6d 65 2d 65 |(defvar |resume-e|
|00000330| 6d 61 63 73 2d 61 72 67 | 73 2d 62 75 66 66 65 72 |macs-arg|s-buffer|
|00000340| 20 22 20 2a 43 6f 6d 6d | 61 6e 64 20 4c 69 6e 65 | " *Comm|and Line|
|00000350| 20 41 72 67 73 2a 22 20 | 28 23 24 20 2e 20 37 35 | Args*" |(#$ . 75|
|00000360| 35 29 29 0a 23 40 36 30 | 20 48 61 6e 64 6c 65 72 |5)).#@60| Handler|
|00000370| 20 66 6f 72 20 63 6f 6d | 6d 61 6e 64 20 6c 69 6e | for com|mand lin|
|00000380| 65 20 61 72 67 73 20 67 | 69 76 65 6e 20 77 68 65 |e args g|iven whe|
|00000390| 6e 20 45 6d 61 63 73 20 | 69 73 20 72 65 73 75 6d |n Emacs |is resum|
|000003a0| 65 64 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ed...(de|falias '|
|000003b0| 72 65 73 75 6d 65 2d 70 | 72 6f 63 65 73 73 2d 61 |resume-p|rocess-a|
|000003c0| 72 67 73 20 23 5b 6e 69 | 6c 20 22 70 c0 09 21 c2 |rgs #[ni|l "p..!.|
|000003d0| 89 0b 1c 1d 1e 06 1e 07 | 1e 08 c9 8e 0e 07 71 88 |........|......q.|
|000003e0| ca 20 88 c2 cb cc 8f 88 | 0e 06 cd 58 ab 84 c2 15 |. ......|...X....|
|000003f0| aa a5 65 62 88 6d ac 99 | ce c2 77 88 60 1e 0f d0 |..eb.m..|..w.`...|
|00000400| c2 77 88 0e 0f 60 7b 0d | 42 15 29 ce c2 77 88 aa |.w...`{.|B.)..w..|
|00000410| 64 0d 9f 15 ca 20 88 d1 | 70 0e 12 5c 22 88 0d ab |d.... ..|p..\"...|
|00000420| 88 d3 0d 40 21 14 0d 41 | 15 0d 1e 14 d5 20 2e 07 |...@!..A|..... ..|
|00000430| 87 22 20 5b 67 65 74 2d | 62 75 66 66 65 72 2d 63 |." [get-|buffer-c|
|00000440| 72 65 61 74 65 20 72 65 | 73 75 6d 65 2d 65 6d 61 |reate re|sume-ema|
|00000450| 63 73 2d 61 72 67 73 2d | 62 75 66 66 65 72 20 6e |cs-args-|buffer n|
|00000460| 69 6c 20 64 65 66 61 75 | 6c 74 2d 64 69 72 65 63 |il defau|lt-direc|
|00000470| 74 6f 72 79 20 63 6f 6d | 6d 61 6e 64 2d 6c 69 6e |tory com|mand-lin|
|00000480| 65 2d 64 65 66 61 75 6c | 74 2d 64 69 72 65 63 74 |e-defaul|t-direct|
|00000490| 6f 72 79 20 61 72 67 73 | 20 6c 65 6e 67 74 68 20 |ory args| length |
|000004a0| 61 72 67 73 2d 62 75 66 | 66 65 72 20 73 74 61 72 |args-buf|fer star|
|000004b0| 74 2d 62 75 66 66 65 72 | 20 28 28 62 79 74 65 2d |t-buffer| ((byte-|
|000004c0| 63 6f 64 65 20 22 70 08 | 61 ab 83 09 71 88 c2 87 |code "p.|a...q...|
|000004d0| 22 20 5b 61 72 67 73 2d | 62 75 66 66 65 72 20 73 |" [args-|buffer s|
|000004e0| 74 61 72 74 2d 62 75 66 | 66 65 72 20 6e 69 6c 5d |tart-buf|fer nil]|
|000004f0| 20 32 29 29 20 65 72 61 | 73 65 2d 62 75 66 66 65 | 2)) era|se-buffe|
|00000500| 72 20 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 09 |r (byte-|code "..|
|00000510| 21 89 1a 41 40 13 29 c0 | 87 22 20 5b 69 6e 73 65 |!..A@.).|." [inse|
|00000520| 72 74 2d 66 69 6c 65 2d | 63 6f 6e 74 65 6e 74 73 |rt-file-|contents|
|00000530| 20 72 65 73 75 6d 65 2d | 65 6d 61 63 73 2d 61 72 | resume-|emacs-ar|
|00000540| 67 73 2d 66 69 6c 65 20 | 72 65 73 75 6c 74 20 6c |gs-file |result l|
|00000550| 65 6e 67 74 68 5d 20 33 | 29 20 28 28 66 69 6c 65 |ength] 3|) ((file|
|00000560| 2d 65 72 72 6f 72 20 28 | 62 79 74 65 2d 63 6f 64 |-error (|byte-cod|
|00000570| 65 20 22 c0 20 88 c1 12 | c0 87 22 20 5b 65 72 61 |e ". ...|.." [era|
|00000580| 73 65 2d 62 75 66 66 65 | 72 20 30 20 6c 65 6e 67 |se-buffe|r 0 leng|
|00000590| 74 68 5d 20 31 29 29 29 | 20 30 20 22 20 09 5c 6e |th] 1)))| 0 " .\n|
|000005a0| 22 20 62 65 67 69 6e 20 | 22 5e 20 09 5c 6e 22 20 |" begin |"^ .\n" |
|000005b0| 72 65 73 75 6d 65 2d 77 | 72 69 74 65 2d 62 75 66 |resume-w|rite-buf|
|000005c0| 66 65 72 2d 74 6f 2d 66 | 69 6c 65 20 72 65 73 75 |fer-to-f|ile resu|
|000005d0| 6d 65 2d 65 6d 61 63 73 | 2d 61 72 67 73 2d 66 69 |me-emacs|-args-fi|
|000005e0| 6c 65 20 66 69 6c 65 2d | 6e 61 6d 65 2d 61 73 2d |le file-|name-as-|
|000005f0| 64 69 72 65 63 74 6f 72 | 79 20 63 6f 6d 6d 61 6e |director|y comman|
|00000600| 64 2d 6c 69 6e 65 2d 61 | 72 67 73 2d 6c 65 66 74 |d-line-a|rgs-left|
|00000610| 20 63 6f 6d 6d 61 6e 64 | 2d 6c 69 6e 65 2d 31 5d | command|-line-1]|
|00000620| 20 35 20 28 23 24 20 2e | 20 38 37 33 29 5d 29 0a | 5 (#$ .| 873)]).|
|00000630| 23 40 36 37 20 43 6c 65 | 61 72 20 6f 75 74 20 74 |#@67 Cle|ar out t|
|00000640| 68 65 20 66 69 6c 65 20 | 75 73 65 64 20 66 6f 72 |he file |used for|
|00000650| 20 74 72 61 6e 73 6d 69 | 74 74 69 6e 67 20 61 72 | transmi|tting ar|
|00000660| 67 73 20 77 68 65 6e 20 | 45 6d 61 63 73 20 72 65 |gs when |Emacs re|
|00000670| 73 75 6d 65 73 2e 1f 0a | 28 64 65 66 61 6c 69 61 |sumes...|(defalia|
|00000680| 73 20 27 72 65 73 75 6d | 65 2d 73 75 73 70 65 6e |s 'resum|e-suspen|
|00000690| 64 2d 68 6f 6f 6b 20 23 | 5b 6e 69 6c 20 22 8a c0 |d-hook #|[nil "..|
|000006a0| 09 21 71 88 c2 20 88 c3 | 70 0c 5c 22 29 87 22 20 |.!q.. ..|p.\")." |
|000006b0| 5b 67 65 74 2d 62 75 66 | 66 65 72 2d 63 72 65 61 |[get-buf|fer-crea|
|000006c0| 74 65 20 72 65 73 75 6d | 65 2d 65 6d 61 63 73 2d |te resum|e-emacs-|
|000006d0| 61 72 67 73 2d 62 75 66 | 66 65 72 20 65 72 61 73 |args-buf|fer eras|
|000006e0| 65 2d 62 75 66 66 65 72 | 20 72 65 73 75 6d 65 2d |e-buffer| resume-|
|000006f0| 77 72 69 74 65 2d 62 75 | 66 66 65 72 2d 74 6f 2d |write-bu|ffer-to-|
|00000700| 66 69 6c 65 20 72 65 73 | 75 6d 65 2d 65 6d 61 63 |file res|ume-emac|
|00000710| 73 2d 61 72 67 73 2d 66 | 69 6c 65 5d 20 33 20 28 |s-args-f|ile] 3 (|
|00000720| 23 24 20 2e 20 31 35 38 | 39 29 5d 29 0a 23 40 36 |#$ . 158|9)]).#@6|
|00000730| 34 20 57 72 69 74 65 73 | 20 74 68 65 20 63 6f 6e |4 Writes| the con|
|00000740| 74 65 6e 74 73 20 6f 66 | 20 42 55 46 46 45 52 20 |tents of| BUFFER |
|00000750| 69 6e 74 6f 20 46 49 4c | 45 2c 20 69 66 20 70 65 |into FIL|E, if pe|
|00000760| 72 6d 69 73 73 69 6f 6e | 73 20 61 6c 6c 6f 77 2e |rmission|s allow.|
|00000770| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 72 65 73 |..(defal|ias 'res|
|00000780| 75 6d 65 2d 77 72 69 74 | 65 2d 62 75 66 66 65 72 |ume-writ|e-buffer|
|00000790| 2d 74 6f 2d 66 69 6c 65 | 20 23 5b 28 62 75 66 66 |-to-file| #[(buff|
|000007a0| 65 72 20 66 69 6c 65 29 | 20 22 c0 09 21 ac 85 c2 |er file)| "..!...|
|000007b0| c3 09 5c 22 88 8a 0c 71 | 88 c5 20 88 8c 7e 88 c6 |..\"...q|.. ..~..|
|000007c0| 65 64 09 c7 c8 25 88 29 | c9 c7 21 29 87 22 20 5b |ed...%.)|..!)." [|
|000007d0| 66 69 6c 65 2d 77 72 69 | 74 61 62 6c 65 2d 70 20 |file-wri|table-p |
|000007e0| 66 69 6c 65 20 65 72 72 | 6f 72 20 22 4e 6f 20 70 |file err|or "No p|
|000007f0| 65 72 6d 69 73 73 69 6f | 6e 20 74 6f 20 77 72 69 |ermissio|n to wri|
|00000800| 74 65 20 66 69 6c 65 20 | 25 73 22 20 62 75 66 66 |te file |%s" buff|
|00000810| 65 72 20 63 6c 65 61 72 | 2d 76 69 73 69 74 65 64 |er clear|-visited|
|00000820| 2d 66 69 6c 65 2d 6d 6f | 64 74 69 6d 65 20 77 72 |-file-mo|dtime wr|
|00000830| 69 74 65 2d 72 65 67 69 | 6f 6e 20 6e 69 6c 20 71 |ite-regi|on nil q|
|00000840| 75 69 65 74 20 73 65 74 | 2d 62 75 66 66 65 72 2d |uiet set|-buffer-|
|00000850| 6d 6f 64 69 66 69 65 64 | 2d 70 5d 20 36 20 28 23 |modified|-p] 6 (#|
|00000860| 24 20 2e 20 31 38 34 32 | 29 5d 29 0a 28 70 72 6f |$ . 1842|)]).(pro|
|00000870| 76 69 64 65 20 27 72 65 | 73 75 6d 65 29 0a |vide 're|sume). |
+--------+-------------------------+-------------------------+--------+--------+